const config = require('./../config/dataBaseConfig')

// 存放sessionId的cookie配置
module.exports = {
    key: 'USER_SID',
    // cookie 配置项
    config: {
        maxAge: 86400000, // cookie有效时长
        expires: '',  // cookie失效时间
        path: '/', // 写cookie所在的路径
        domain: '', // 写cookie所在的域名
        httpOnly: '', // 是否只用于http请求中获取
        overwrite: false,  // 是否允许重写
        secure: '',
        sameSite: '',
        signed: '',
    },
    // session存储配置
    sessionMysqlConfig: {
        user: config.database.USERNAME,
        password: config.database.PASSWORD,
        database: config.database.DATABASE,
        host: config.database.HOST,
    }
}